﻿using Abp.Application.Services.Dto;
using Mt.Site.Application.Localization.Dto;
using System.Threading.Tasks;

namespace Mt.Site.Application.Localization
{
    public interface ILanguageAppService : IBackEndAppService
    {
        Task<GetLanguagesOutput> GetLanguages();

        Task<GetLanguageForEditOutput> GetLanguageForEdit(NullableIdDto input);

        Task CreateOrUpdateLanguage(CreateOrUpdateLanguageInput input);

        Task DeleteLanguage(EntityDto input);

        Task SetDefaultLanguage(SetDefaultLanguageInput input);

        Task<PagedResultDto<LanguageTextListDto>> GetLanguageTexts(GetLanguageTextsInput input);

        Task UpdateLanguageText(UpdateLanguageTextInput input);


        Task<GetLanguagesOutput> GetLanguages2();

        Task ResetDefaultLanguage();

        Task ResetLanguageText(UpdateLanguageTextInput input);
    }
}
